package com.kingint.web.admin.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kingint.mbg.dto.department.DepartmentQueryParam;
import com.kingint.mbg.dto.department.DepartmentRepairBack;
import com.kingint.mbg.dto.department.DepartmentRepairParam;
import com.kingint.mbg.ser.entity.SerDepartmentRepair;

import java.util.List;


/**
 * <p>
 * 部门保修表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-20
 */
public interface SerDepartmentRepairService extends IService<SerDepartmentRepair> {


    /**
     * 查询维修工单列表信息
     *
     * @param queryParam
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<SerDepartmentRepair> getAllDepartmentRepairList(DepartmentQueryParam queryParam, Integer pageNum, Integer pageSize);

    /**
     * 后台添加维修单
     *
     * @param departmentRepairParam
     * @return
     */
    int addDepartmentRepair(DepartmentRepairParam departmentRepairParam);


    /**
     * 获取维修单详情信息
     *
     * @param id
     * @return
     */
    DepartmentRepairBack getDepartmentRepairInfo(Integer id);

    /**
     * 删除对应的维修单信息
     *
     * @param id
     * @return
     */
    Integer deleteRepairInfo(Integer id);

    /**
     * 挂起维修单信息
     *
     * @param workId
     * @return
     */
    Integer hangUpInfo(Integer workId);

    /**
     * 验收维修工单
     *
     * @param workId
     * @return
     */
    Integer checkWorkOrder(Integer workId,Integer status);

    /**
     * 更换处理人
     * @param id
     * @param memberId
     * @return
     */
    int changeHandleUser(Integer id, Long memberId);

}
